package com.example.springbook.CarTest;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//对象的配置的引用
@ConfigurationProperties(prefix = "student")
@Component
@Data
public class StudentInfo {
     private String name;
     private int id;
     private int age;
}
